import { FC } from 'react';

interface PropsType {
  count: number;
  msg?: string;
  // 索引签名
  [propname: string]: any;
}

const Child: FC<PropsType> = (props) => {
  console.log(props);
  return <div>这是child组件 - {props.count}</div>;
};

export default Child;
